package pwd;

import java.util.Random;

/**
 * Created by v on 17-5-7.
 */
public class DynamicPwd {

    //随机生成一个16位字符串
    public static String randomPwd(){
        StringBuffer buffer=new StringBuffer(16);
        Random random=new Random();

        for(int i=0;i<16;i++){
            buffer.append(random.nextInt(62)+'0');
        }

        return buffer.toString();
    }
}
